<?php
//+-----------------------------------------------------------
//| 人生是荒芜的旅行，冷暖自知，苦乐在心
//+-----------------------------------------------------------
//| Author:Janmas <janmas@126.com>
//+-----------------------------------------------------------
//| 
//+-----------------------------------------------------------

namespace app\common\exception;

use think\App;

/**
 * api异常基类
 * @package app\common\exception
 */
class ApiException extends BaseException
{

    protected $data;

    protected $header;

    public function __construct ( String $message = "" , int $code = 404 , Array $data=[],Array $header=[] )
    {
        $this->data = $data;
        $this->header = $header;
        parent::__construct($message , $code );
    }

    public function getData(){
        return $this->data;
    }

    public function getHeader(){
        return $this->header;
    }
}